Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Only run specified integration tests with firefox #8603

Merged
merged 5 commits into from
Jul 25, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Jul 21, 2023

As a possible fix for #8589, this sets up our integration tests to only run tests in firefox when the test contains @firefox. This way, we manually tag tests we want to run in firefox, as the tests are quite often flaky.

We may think about reverting this once microsoft/playwright#12182 is fixed.

Note that to do this, I changed our usage of browser to instead use project (which appears anyhow the recommended way to do this nowadays).

Note that this also has the advantage that the "default" and chromium are the same thing now, previously when running yarn test it would actually use chromium under the hood but not generate snapshots etc. as chromium, now this should be more explicit.

I've only added stuff that had explicit firefox things right now (e.g. stacktrace stuff, ...), not sure if there are other things we also want to make sure to run in FF?

@mydea mydea self-assigned this Jul 21, 2023
@mydea mydea force-pushed the fn/disable-firefox-integration-tests branch from fec22b8 to 3660513 Compare July 21, 2023 09:26
Copy link
Collaborator

@onurtemizkan onurtemizkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

This changes it so you have to mark integration tests you want to run in firefox with `@firefox`. We've been skipping a few of them and had often flakiness issues, probably due to microsoft/playwright#12182.
@mydea mydea force-pushed the fn/disable-firefox-integration-tests branch from e89c47e to d02b5cc Compare July 21, 2023 12:41
@github-actions
Copy link
Contributor

github-actions bot commented Jul 21, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.99 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 69.25 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.33 KB (-0.02% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 60.48 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.95 KB (-0.01% 🔽)
@sentry/browser - Webpack (minified) 71.63 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.96 KB (-0.01% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 50.83 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 30.37 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 28.24 KB (0%)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.56 KB (0%)
@sentry/replay - Webpack (gzipped + minified) 43.33 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.73 KB (-0.01% 🔽)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 62 KB (-0.01% 🔽)

@@ -5,7 +5,7 @@ window.Replay = new Sentry.Replay({
flushMinDelay: 200,
flushMaxDelay: 200,
minReplayDuration: 0,
slowClickTimeout: 3100,
slowClickTimeout: 3500,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed this as it was sometimes flaky with the 3000 min threshold.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this seems fine for me

@mydea mydea merged commit 428598d into develop Jul 25, 2023
51 checks passed
@mydea mydea deleted the fn/disable-firefox-integration-tests branch July 25, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants